using Common.NotifyEvent;

namespace MainView.TemplateSelector
{
	public class Column : NotifyPropertyChanged
	{
		private SettingsType _Settings;

		private string _FieldName = "";

		private string _Header = "";

		private int _VisibleIndex;

		private bool _AllowEditing = true;

		public SettingsType Settings
		{
			get
			{
				return _Settings;
			}
			set
			{
				_Settings = value;
				OnPropertyChanged("Settings");
			}
		}

		public string FieldName
		{
			get
			{
				return _FieldName;
			}
			set
			{
				_FieldName = value;
				OnPropertyChanged("FieldName");
			}
		}

		public string Header
		{
			get
			{
				return _Header;
			}
			set
			{
				_Header = value;
				OnPropertyChanged("Header");
			}
		}

		public int VisibleIndex
		{
			get
			{
				return _VisibleIndex;
			}
			set
			{
				_VisibleIndex = value;
				OnPropertyChanged("VisibleIndex");
			}
		}

		public bool AllowEditing
		{
			get
			{
				return _AllowEditing;
			}
			set
			{
				_AllowEditing = value;
				OnPropertyChanged("AllowEditing");
			}
		}
	}
}
